//
//  AudioCollectionViewCell.m
//  PhoenixNews
//
//  Created by dllo on 16/1/20.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "AudioCollectionViewCell.h"

@implementation AudioCollectionViewCell
- (void)dealloc {
    [_titleImage release];
    [_title release];
    [super dealloc];
}

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.titleImage = [[UIImageView alloc] init];
        [self.contentView addSubview:_titleImage];
        [_titleImage release];
        
        self.title = [[UILabel alloc] init];
        [self.contentView addSubview:_title];
        [_title release];
    }
    return self;
}

- (void)applyLayoutAttributes:(UICollectionViewLayoutAttributes *)layoutAttributes {
    _titleImage.frame = CGRectMake(0, 80, layoutAttributes.self.size.width, 60);
    _title.frame = CGRectMake(12, 150, 60, 40);
}

@end
